app.controller('xitongshezhiCtrl',['$scope','$http','$location',function ($scope,$http,$location) {
    $scope.logOut = function () {
        var token = localStorage.getItem('token');
        mui.showLoading('正在加载','div');
        // mui.hideLoading();
        $http({
            method: "POST",
            url: mainUrl+'/system/login!logout.action',
            params: {
                'Authorization': token
            }
        }).then(
            function(data, status, headers, config){
                // $scope.items = data.data.items;
                console.log(data)
                mui.hideLoading();
                localStorage.clear();
                window.history.forward(1);
                mui.toast('成功退出')
                $location.path('/');
            },function(data, status, headers, config){

            }
        );
    }



}])